package com.rightsidetech.trade.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class TdStatisReq implements Serializable {

    @ApiModelProperty(value = "需要统计的时间 yyyy-MM-dd HH:mm:ss",required = true)
    @Pattern(regexp = "^$|^(19|20)\\d{2}\\-[01]\\d\\-[0123]\\d\\s\\d{2}\\:\\d{2}\\:\\d{2}$", message = "日期格式不正确，如yyyy-MM-dd HH:mm:ss")
    @NotBlank(message = "时间不能为空")
    private String statisTime;

    @ApiModelProperty(value = "门店id",required = false)
    private Long storeId;
}
